import axios from "../util/request"

export function Table(val){
    return axios({
        data:val,
        method:"GET",
        url:"/adminapi/setting/admin?page="+val.page+"&limit="+val.limit,
    })
}

export function motai(val){
    return axios({
        data:val,
        method:"GET",
        url:"/adminapi/setting/admin/create",
    })
}
export function useStatus(val){
    return axios({
        data:val,
        method:"PUt",
        url:`/adminapi/setting/set_status/${val.id}/${val.status}`,
    })
}

export function del(val){
    return axios({
        data:val,
        method:"DELETE",
        url:`/adminapi/setting/admin/${val.id}`,
    })
}

export function add(val){
    return axios({
        data:val,
        method:"post",
        url:`/adminapi/setting/admin`,
    })
}